#include<stdio.h>
int main()
{
	int a[10] = {9,8,7,6,5,4,3,2,1,0};
	int i = 0;
	int j = 0;
	int t = 0;
	for(i=0;i<10;i++)
	{
		for(j=0;j<10-1-i;j++)
		{
			if(a[j]>a[j+1])
			{
				t = a[j];
				a[j] = a[j+1];
				a[j+1] = t;
			}
		}
	}
	for(i=0;i<10;i++)
	{
		printf("%d ",a[i]);
	}
	
	return 0;
}
